package com.mind.api.webservice;

import javax.xml.bind.annotation.*;
import java.util.List;

// 定义根元素Envelope的Java类
@XmlRootElement(name = "Envelope", namespace = "http://schemas.xmlsoap.org/soap/envelope/")
@XmlAccessorType(XmlAccessType.FIELD)
public  class ShareCallbackResponse {

    @XmlElement(name = "Body", namespace = "http://schemas.xmlsoap.org/soap/envelope/")
    private Body body;

    // 标准的getter和setter
    public Body getBody() {
        return body;
    }

    public void setBody(Body body) {
        this.body = body;
    }

    // 定义Body元素的Java类
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Body {

        @XmlElement(name = "getSmartCheckReturnDataResponse", namespace = "http://ofbiz.apache.org/service/")
        private GetSmartCheckReturnDataResponse getSmartCheckReturnDataResponse;

        public GetSmartCheckReturnDataResponse getGetSmartCheckReturnDataResponse() {
            return getSmartCheckReturnDataResponse;
        }

        public void setGetSmartCheckReturnDataResponse(GetSmartCheckReturnDataResponse getSmartCheckReturnDataResponse) {
            this.getSmartCheckReturnDataResponse = getSmartCheckReturnDataResponse;
        }
    }

    // 定义getSmartCheckReturnDataResponse元素的Java类
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class GetSmartCheckReturnDataResponse {

        @XmlElement(name = "CONTENT", namespace = "http://ofbiz.apache.org/service/")
        private CONTENT content;

        public CONTENT getCONTENT() {
            return content;
        }

        public void setCONTENT(CONTENT content) {
            this.content = content;
        }
    }

    // 定义CONTENT元素的Java类
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class CONTENT {

        @XmlElement(name = "O_RESULT", namespace = "http://ofbiz.apache.org/service/")
        private String oResult;

        @XmlElement(name = "O_ERRORCODE", namespace = "http://ofbiz.apache.org/service/")
        private String oErrorCode;

        @XmlElement(name = "O_ERRORINFO", namespace = "http://ofbiz.apache.org/service/")
        private String oErrorInfo;

        @XmlElement(name = "O_COMMENTS", namespace = "http://ofbiz.apache.org/service/")
        private String oComments;

        @XmlElement(name = "O_SYS_REFCUR", namespace = "http://ofbiz.apache.org/service/")
        private O_SYS_REFCUR oSysRefcur;

        public String getOResult() {
            return oResult;
        }

        public void setOResult(String oResult) {
            this.oResult = oResult;
        }

        public String getOErrorCode() {
            return oErrorCode;
        }

        public void setOErrorCode(String oErrorCode) {
            this.oErrorCode = oErrorCode;
        }

        public String getOErrorInfo() {
            return oErrorInfo;
        }

        public void setOErrorInfo(String oErrorInfo) {
            this.oErrorInfo = oErrorInfo;
        }

        public String getOComments() {
            return oComments;
        }

        public void setOComments(String oComments) {
            this.oComments = oComments;
        }

        public O_SYS_REFCUR getOSysRefcur() {
            return oSysRefcur;
        }

        public void setOSysRefcur(O_SYS_REFCUR oSysRefcur) {
            this.oSysRefcur = oSysRefcur;
        }
    }

    // 定义O_SYS_REFCUR元素的Java类
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class O_SYS_REFCUR {

        @XmlElement(name = "Row", namespace = "http://ofbiz.apache.org/service/")
        private List<Row> rows;

        public List<Row> getRows() {
            return rows;
        }

        public void setRows(List<Row> rows) {
            this.rows = rows;
        }
    }

    // 定义Row元素的Java类
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Row {

        @XmlElement(name = "Column", namespace = "http://ofbiz.apache.org/service/")
        private Column column;

        public Column getColumn() {
            return column;
        }

        public void setColumn(Column column) {
            this.column = column;
        }
    }

    // 定义Column元素的Java类
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Column {

        @XmlValue
        private String value;

        @XmlAttribute(name = "name", namespace = "http://ofbiz.apache.org/service/")
        private String name;

        @XmlAttribute(name = "sqltype", namespace = "http://ofbiz.apache.org/service/")
        private String sqltype;

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSqltype() {
            return sqltype;
        }

        public void setSqltype(String sqltype) {
            this.sqltype = sqltype;
        }
    }
}

